<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition template="/templates/geral.xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<ui:define name="conteudo">
		<h:form id="formConsultarAcademias">
			<p:panel id="panelConsultarAcademias" header="#{str.consultar_academias_titulo_painel}" closable="true" closeSpeed="500" styleClass="painel-acoes">
				<p:fieldset>
					<h:panelGrid columns="3" cellpadding="5">
						<p:column>
							<p:outputLabel value="#{str.consultar_academias_nome_fantasia}:" for="inputFiltroNomePerfil" />
							<span class="obrigatoriedade-campos">#{str.um_asterisco}</span>
						</p:column>
						<p:column>
							<p:inputText id="inputFiltroNomePerfil" maxlength="#{propriedades.getTamanhoMaxNomeFantasiaAcademia()}" placeholder="#{str.consultar_academias_informe_nome_ou_parte_nome}" autocomplete="false" value="#{consultarAcademias.filtroNomeFantasia}" styleClass="campo-texto-consultar-academias" />
						</p:column>
						<p:column>
							<p:commandButton icon="ui-icon-search" title="#{str.consultar}" action="#{consultarPerfisDeUsuario.consultarAcademias()}" update=":#{p:component('dataTableAcademias')}, :#{p:component('growlGeral')}" />
						</p:column>
					</h:panelGrid>
					<br />
					<span class="descricao-obrigatoriedade-campos">#{str.um_asterisco} #{str.consultar_academias_descricao_obrigatoriedade_consulta}</span>
				</p:fieldset>
				<p:separator styleClass="separador-simples" />
				<p:fieldset>
					<p:dataTable id="dataTableAcademias" var="academia" emptyMessage="" value="#{consultarAcademias.academias}" resizableColumns="true" selection="#{consultarAcademias.academiasSelecionadas}" rowKey="#{academias.codigo}" scrollable="true" scrollHeight="300">
						<p:column selectionMode="multiple" width="16" styleClass="coluna-centralizada" />	
					</p:dataTable>
				</p:fieldset>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>